package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.Result;
import com.atguigu.eduservice.client.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class VodFileDegradeFeignClient implements VodClient {
    // 提供者的服务器出错执行以下方法
    @Override
    public Result removeAliYunVideo(String videoId) {
        return Result.fail().message("删除视频出错了");
    }

    @Override
    public Result removeBatchAliYunVideos(List<String> videoIdList) {
        return Result.fail().message("删除多个视频出错了");
    }
}
